package com.hmy.finance.common.easyexcel.pojo.exportbeans;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class ExportDemoData extends ExportSingleData {

    @ExcelProperty(value = "名称")
    private String name;

    @ExcelProperty(value = "生日")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    private String birthday;

    public static List<List<String>> excelHead() {
        List<List<String>> heads = new ArrayList<>();
        heads.add(Arrays.asList("个人信息", "姓名"));
        heads.add(Arrays.asList("个人信息", "生日"));
        return heads;
    }

}
